lib/repo: do no return an arbitrary mode on failure
authorLuca BRUNO <luca.bruno@coreos.com>
Tue, 7 Dec 2021 16:16:39 +0000 (16:16 +0000)
committerLuca BRUNO <luca.bruno@coreos.com>
Tue, 7 Dec 2021 16:23:02 +0000 (16:23 +0000)
commit4a0ebe507fae41e7f080e15c492f629fdeeaf4ca
tree90a2afa1ca4ea4b98fb8ed04bb8e25ce646a0cce
parentf1e24945fa03c12417ba0e47fedc8e87c9c0a1f1
lib/repo: do no return an arbitrary mode on failure

This turns the existing check into an assert. Otherwise, the previous
code may return an arbitrary repo mode (bare) on failure.
src/libostree/ostree-repo.c